//
//  Array+Utils.swift
//  xmly
//
//  Created by 刘文超 on 2019/12/27.
//  Copyright © 2019 刘文超. All rights reserved.
//

import Darwin
public extension Array {
    
    func LS_random() -> Iterator.Element? {
    guard count > 0 else { return nil}
    return self [Int(arc4random_uniform(UInt32(count)))]
    }
    
}
